package cn.zzp.product.domain;

import cn.zzp.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName Product
 * @Description
 * @Author 祝志鹏
 * @Date 2022/8/12 9:06
 */
@Data
public class Product extends BaseDomain {

    private String name;

    /**
     * 成本价格
     */
    private BigDecimal costprice;

    /**
     * 售价
     */
    private BigDecimal saleprice;
    private String resources;
    private Long salecount;

    /**
     * 0 下架 1 上架
     */
    private Integer state = 0;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date onsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime = new Date();

    private ProductDetail productDetail;
}
